from PIL import Image
import cv2
import numpy as np
import matplotlib.pyplot as plt
Signature: Image.open(fp, mode='r', formats=None)
The 'Image.open' function from the Python Imaging Library (PIL) is used to open an image file and return it as a PIL Image object.
img = Image.open('2.jpg')
print(img)
img.show()
from IPython.display import display
display(img)